/**
 * Random Data Generator Javabean
 * @author avian
 */
import java.io.Serializable;
import org.apache.commons.math3.random.RandomData;
import org.apache.commons.math3.random.RandomDataImpl;

public class MyRandom implements Serializable {
    private int type, p1, p2, p3;
    private String input, output;
    
    public MyRandom(int requesttype, int param1, int param2, int param3)
    {
        this.type = requesttype;
        this.p1 = param1;
        this.p2 = param2;
        this.p3 = param3;
    }
    
    public String getInput()
    {
        return input;
    }
    
    public String getOutput()
    {
        return output;
    }
    
    public String getRandomLongs()
    {
        RandomData randomData = new RandomDataImpl();
        long[] values = new long[p1];
        for (int i = 0; i < p1; i++) {
            values[i] = randomData.nextLong(p2, p3);
            output += values[i];
        }
        return output;
    }
}